import 'package:flutter/material.dart';
import 'package:flutter_shop/pages/IndexPage.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: MaterialApp(
        debugShowCheckedModeBanner: false,
        title: 'flutter商城',
        theme: ThemeData(
          primaryColor: Colors.pink, // 这里的颜色也作用在navbar上面
        ),
        home: IndexPage(),
      ),
    );
  }
}
